package com.autotest;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.edge.EdgeDriver;
import java.io.File;

public class Main {
    public static void main(String[] args) {

        File file = new File("C:\\msedgedriver.exe");
        System.setProperty("webdriver.edge.driver",file.getAbsolutePath());
        WebDriver driver = new EdgeDriver();
        driver.get("https://www.baidu.com/");
        String title = driver.getTitle();
        System.out.printf(title);
        driver.close();


        System.out.println("Hello World!");

    }




}



